import request from '@/utils/request'

// 查询教师列表
export function listJiaoshi(query) {
  return request({
    url: '/system/jiaoshi/list',
    method: 'get',
    params: query
  })
}

// 查询教师详细
export function getJiaoshi(jiaoshiId) {
  return request({
    url: '/system/jiaoshi/' + jiaoshiId,
    method: 'get'
  })
}

// 新增教师
export function addJiaoshi(data) {
  return request({
    url: '/system/jiaoshi',
    method: 'post',
    data: data
  })
}

// 修改教师
export function updateJiaoshi(data) {
  return request({
    url: '/system/jiaoshi',
    method: 'put',
    data: data
  })
}

// 删除教师
export function delJiaoshi(jiaoshiId) {
  return request({
    url: '/system/jiaoshi/' + jiaoshiId,
    method: 'delete'
  })
}
